package ac_0723;

public class Student {

	private String name;
	private int kor;
	private int eng;
	private int math;
	private int total;
	private double avg;

	public Student(String name,int kor,int eng,int math) {
		this.name = name;
		this.kor = kor;
		this.eng = eng;
		this.math = math;
	}

	public int getKor() {
		return kor;
	}

	public int getTotal() {
		return total;
	}

	public int getEng() {
		return eng;
	}

	public int getMath() {
		return math;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public void setAvg(double avg) {
		this.avg = avg;
	}

	public String toString() {
		return name + "\t " + kor + "\t " + eng + "\t " + math + "\t" + total + "\t" + avg;

	}

}
